package com.ptswitch.material.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.ptswitch.material.model.common.Uzer;
import com.ptswitch.material.model.contract.Contract;

public interface ContractMapper {

    @Select("")
    Contract findById(long id, int init);

    @Select("")
    List<Contract> findAllByContractStatus(String status, long first, long size);

    @Select("")
    List<Contract> findByVisitor(Uzer visitor, long first, long size);

    @Select("")
    String emptyCode(String code);

    @Update("")
    void save(Contract contract);

    @Delete("")
    void delete(Contract contract);

    @Select("")
    List<Contract> findAll(long first, long size);

    @Select("")
    long countAll();

    @Select("")
    List<Contract> findLike(String like, long first, long size);

    @Select("")
    long countLike(String like);
}
